package com.lovo.ssc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lovo.ssc.entity.SysGoods2;

/**
 * <p>
 * 总库存商品表 服务类
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
public interface ISysGoods2Service extends IService<SysGoods2> {
    /**1
     * 修改阈值范围
     * @param id
     * @param newScope
     */
    public void updateScope(Integer id,Integer newScope);

    /**2
     * 上架时调用
     * 1)减批次库存表2)减总库存表3)判断阈值,发计划
     * @param batch
     * @param num
     * @param goodsCode
     */
    public void outStorage(String goodsCode,String batch,int num);

    /**3
     * 退货加库存
     * @param goodsCode
     * @param batch
     * @param num
     */
    public void inStorageCauseByReturn(String goodsCode,String batch,int num);

    public void updatePrice(String goodsCode,Float newPrice);

}
